<extend name="CommonAdmin:base" />

<block name="script">
<script>

$(function() {
   $("input:button").button();
});
function back() {
    var url = "__URL__/index";
    window.location = url;
}
</script>
</block>

<block name="main-in">
<div>
<form action="__URL__/add" method="post">
    <table>
        <tr>
            <td class="required">公司</td>
            <td>
                <select name="company_id">
                    <volist name="companyList" id="data">
                    <option value="{$data.id}">{$data.company_name}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td class="required">桌号</td>
            <td>
                <input type="text" name="table_num" value="{$vo.table_num}" />
            </td>
        </tr>
        <tr>
            <td>桌位人数</td>
            <td>
                <input type="text" name="table_people" value="{$vo.table_people}" />
            </td>
        </tr>
        <tr>
            <td colspan=2 align="right">
                <button type="submit">提交</button>
                <button type="button" onclick="back()">返回</button>
            </td>
        </tr>
    </table>
</form>
</div>
</block>